
const myfilters = {
    timerFilter: function (t, type) {
        let time = new Date(t);
        const month =
            time.getMonth() + 1 > 9
                ? time.getMonth() + 1
                : "0" + (time.getMonth() + 1);
        const day = time.getDate() > 9 ? time.getDate() : "0" + time.getDate();
        const hour = time.getHours() == 0 ? "00" : time.getHours();
        const minute = time.getMinutes() == 0 ? "00" : time.getMinutes();
        return (
            time.getFullYear() + type + month + type + day + "  " + hour + ":" + minute
        );
    }
}
export default myfilters